FROM zhangxin2477/mao-cloud:latest

LABEL auth="zhangxin,1367800014@qq.com,gitee-cloud"
ADD *.sh /root/

ENV JPOM_VERSION='2.11.4' JPOM_SERVER=false JPOM_AGENT=false

ENV GITEE_AGENT=true GITEE_AUTH='' GITEE_NAME='' GITEE_REMARK='' GITEE_COUNT=10

RUN chmod 755 /root/*.sh && cd /root && mkdir -p gitee-agent && touch /root/gitee-agent/uuid && \
    apt update && apt remove openjdk-* maven -y && apt install openjdk-8-jdk maven -y && \
    apt upgrade -y && apt autoremove -y && apt autoclean

EXPOSE 22/tcp

ENTRYPOINT [ "/root/init.sh" ]